package com.shxzz.easy12306.services.user.dto.resp;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.shxzz.easy12306.services.user.serialize.IdCardDesensitizationSerializer;
import com.shxzz.easy12306.services.user.serialize.PhoneDesensitizationSerializer;
import lombok.Data;

/**
 * 脱敏用户信息实体
 */
@Data
public class UserQueryRespDTO {
    /**
     * ID
     */
    private Long id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 真实姓名
     */
    private String realName;

    /**
     * 手机号
     */
    @JsonSerialize(using = PhoneDesensitizationSerializer.class)
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 证件类型
     */
    private Integer idType;

    /**
     * 证件号
     */
    @JsonSerialize(using = IdCardDesensitizationSerializer.class)
    private String idCard;

    /**
     * 旅客类型
     */
    private Integer userType;

    /**
     * 国家地区
     */
    private String region;
}